package com.example.provide.rest;

import com.example.common.service.HelloClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ProviderRest implements HelloClient {

    @Override
    public String sayHello(@RequestParam("name") String name) {
        return name + ": hello";
    }
}
